import request from "@/utils/request";

// 查询产地管理列表
export function listSeaCucumberOrigin(query, pageReq) {
  return request({
    url: "/pms/seaCucumberOrigin/list",
    method: "post",
    data: query,
    params: pageReq,
  });
}

// 查询产地管理详细
export function getSeaCucumberOrigin(id) {
  return request({
    url: "/pms/seaCucumberOrigin/" + id,
    method: "get",
  });
}

// 新增产地管理
export function addSeaCucumberOrigin(data) {
  return request({
    url: "/pms/seaCucumberOrigin",
    method: "post",
    data: data,
  });
}

// 修改产地管理
export function updateSeaCucumberOrigin(data) {
  return request({
    url: "/pms/seaCucumberOrigin",
    method: "put",
    data: data,
  });
}

// 删除产地管理
export function delSeaCucumberOrigin(id) {
  return request({
    url: "/pms/seaCucumberOrigin/" + id,
    method: "delete",
  });
}

// 导出产地管理
export function exportSeaCucumberOrigin(query) {
  return request({
    url: "/pms/seaCucumberOrigin/export",
    method: "get",
    params: query,
  });
}
